home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / filter_indices < prev    next >
Text File  |  2001-05-25  |  873b  |  24 lines

  1. SYNOPSIS
  2.         mapping filter_indices(mapping, string func, string|object ob, ...)
  3.         mapping filter_indices(mapping, closure cl, ...)
  4.  
  5. DESCRIPTION
  6.         ob->func() is called resp. cl applied to every element in the
  7.         mapping, with first argument being the key of the
  8.         element, and then the extra args that were given to
  9.         filter_indices (these args must not be protected references like
  10.         &(i[0]). If the function returns true, the element is
  11.         added to the result mapping. ob can also be a file_name of an
  12.         object.
  13.  
  14.         If <ob> is omitted, or neither a string nor an object, it
  15.         defaults to this_object().
  16.  
  17. HISTORY
  18.         In LDMud 3.2.6 renamed from filter_mapping() and generalised
  19.         by efun filter().
  20.  
  21. SEE ALSO
  22.         filter(E), map(E), map_indices(E), walk_mapping(E), member(E),
  23.         m_contains(E)
  24.